package org.gurms.service.dto.system;

import java.io.Serializable;

public class MenuDto implements Serializable {
	private String menuid;
	private String menuname;
	private String menuurl;
	private String menustatus;
	private String leafflag;
	private String remark;
	private int    menuorder;
	private int    privilegelist;

	private String parentmenu;

	public String getMenuid() {
		return menuid;
	}

	public void setMenuid(String menuid) {
		this.menuid = menuid;
	}

	public String getParentmenu() {
		return parentmenu;
	}

	public void setParentmenu(String parentmenu) {
		this.parentmenu = parentmenu;
	}

	public String getMenuname() {
		return menuname;
	}

	public void setMenuname(String menuname) {
		this.menuname = menuname;
	}

	public String getMenuurl() {
		return menuurl;
	}

	public void setMenuurl(String menuurl) {
		this.menuurl = menuurl;
	}

	public int getPrivilegelist() {
		return privilegelist;
	}

	public void setPrivilegelist(int privilegelist) {
		this.privilegelist = privilegelist;
	}

	public String getMenustatus() {
		return menustatus;
	}

	public void setMenustatus(String menustatus) {
		this.menustatus = menustatus;
	}

	public String getLeafflag() {
		return leafflag;
	}

	public void setLeafflag(String leafflag) {
		this.leafflag = leafflag;
	}

	public int getMenuorder() {
		return menuorder;
	}

	public void setMenuorder(int menuorder) {
		this.menuorder = menuorder;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public boolean equals(Object o) {
		if (o == null || !(o instanceof MenuDto)) {
			return false;
		} else {
			MenuDto menu = (MenuDto) o;
			if (menu.getMenuid() == null) {
				return false;
			} else {
				return menu.getMenuid().equals(menuid);
			}
		}
	}

	public int hashCode() {
		if (menuid == null)
			return super.hashCode();
		return menuid.hashCode();
	}
}
